<script type="text/javascript" src="/extra/fckeditor/fckeditor.js"></script>
<?php
echo $this->adminToolBar('hotel', 'edit', '/admin/hotel/add/', '/admin/hotel/edit/', '/admin/hotel/delete/', '/admin/hotel/index/');
?>
<?php
//Zend_Loader::loadFile('../application/default/models/Common.php');
$mod_common = new Common();
$hotel_arr = $this->hotel_arr;
$city_arr = $mod_common->getCity($hotel_arr['hotel_country']);
?>
<table border="1" width="100%" cellpadding="1" cellspacing="2">
	<tr>
		<td width="15%">Hotel Name</td>
		<td width="85%"><input type="text" name="hotel_title" id="hotel_title" value="<?php echo $hotel_arr['hotel_title']; ?>" class="input-2" /></td>
	</tr>
	<tr>
		<td>Country</td>
		<td>
			<select name="hotel_country" id="hotel_country" onChange="return getCity();" class="input-2">
				<option value="">Select Country</option>
				<?php
					foreach ($this->country_arr as $country_entry) :
				?>
					<option value="<?php echo $country_entry['country_id']; ?>" <?php echo ($hotel_arr['hotel_country'] == $country_entry['country_id'])? "selected='selected'": ""; ?>><?php echo $country_entry['country_name']; ?></option>
				<?php	
					endforeach;
				?>
			</select>
		</td>
	</tr>
	<tr>
		<td>City</td>
		<td>
			<select name="hotel_city" id="hotel_city" class="input-2">
				<option value="">Select City</option>
				<?php
					foreach ($city_arr as $city_entry) :
				?>
					<option value="<?php echo $city_entry['city_id']; ?>" <?php echo ($hotel_arr['hotel_city'] == $city_entry['city_id'])? "selected='selected'": ""; ?>><?php echo $city_entry['city_name']; ?></option>
				<?php
					endforeach;
				?>
			</select>
		</td>
	</tr>
	<tr>
		<td>Hotel Description</td>
		<td><textarea name="hotel_description" id="hotel_description" rows="5" cols="80" class="input-txtarea"><?php echo $hotel_arr['hotel_description']; ?></textarea></td>
	</tr>
	<tr>
		<td>Hotel Facility (English)</td>
		<td><?php echo $this->EditorFck('hotel_facility_en', $hotel_arr['hotel_facility_en']); ?></td>
	</tr>
	<tr>
		<td>Hotel Facility (Russian)</td>
		<td><?php echo $this->EditorFck('hotel_facility_ru', $hotel_arr['hotel_facility_ru']); ?></td>
	</tr>
	<tr>
		<td width="15%">Contact Email</td>
		<td width="85%"><input type="text" name="contact_email" id="contact_email" class="input-2" value="<?php echo $hotel_arr['contact_email']; ?>" /></td>
	</tr>
	<tr>
		<td width="15%">Hotel Phone</td>
		<td width="85%"><input type="text" name="hotel_phone" id="hotel_phone" class="input-2" value="<?php echo $hotel_arr['hotel_phone']; ?>" /></td>
	</tr>
	<tr>
		<td width="15%">Hotel Fax</td>
		<td width="85%"><input type="text" name="hotel_fax" id="hotel_fax" class="input-2" value="<?php echo $hotel_arr['hotel_fax']; ?>" /></td>
	</tr>
	<tr>
		<td width="15%">Hotel Skype</td>
		<td width="85%"><input type="text" name="hotel_skype" id="hotel_skype" class="input-2" value="<?php echo $hotel_arr['hotel_skype']; ?>" /></td>
	</tr>
	<tr>
		<td width="15%">No. of Rooms</td>
		<td width="85%"><input type="text" name="no_rooms" id="no_rooms" class="input-2" value="<?php echo $hotel_arr['no_rooms']; ?>" /></td>
	</tr>
	<tr>
		<td>Status</td>
		<td>
			<select name="is_Enabled" id="is_Enabled" class="input-2">
				<option value="">Select Status</option>
				<option value="1" <?php echo ($hotel_arr['is_Enabled'] == 1)? "selected='selected'": ""; ?>>Published</option>
				<option value="0" <?php echo ($hotel_arr['is_Enabled'] == 0)? "selected='selected'": ""; ?>>Unpublished</option>
			</select>
			<input type="hidden" name="hotel_id" id="hotel_id" value="<?php echo $this->hotel_id; ?>" />
		</td>
	</tr>
</table>

